#include <stdio.h>  
  
int main(void) {  
    char  s[10];  
    int cnt = 0;  
    for (int i = 0; i < 4; i++)  
        if (scanf("%c", &s[i])) {  
            if (s[i] >= 'A' && s[i] <= 'Z')  
                cnt++;  
            if (s[i] == 'I' || s[i] == 'O')  
                cnt = -10;  
        }  
  
    if (scanf("%c", &s[4]))  
        if (s[4] >= '0' && s[4] <= '9' && cnt > 1)  
            printf("ok.\n");  
        else  
            printf("no.\n");  
  
    return 0;  
}  